package com.test1231;

public class MemberB extends Member{
    private int hours;
    private double hours_wage;

    public MemberB(int hours, double hours_wage) {
        this.hours = hours;
        this.hours_wage = hours_wage;
    }

    public MemberB(int hours) {
        this.hours = hours;
    }

    public MemberB(String name, CompanyA com, int hours) {
        super(name, com);
        this.hours = hours;
    }

    public MemberB(String name, int hours) {
        super(name);
        this.hours = hours;
    }

    public MemberB(String name, int hours, double hours_wage) {
        super(name);
        this.hours = hours;
        this.hours_wage = hours_wage;
    }

    public int getHours() {
        return hours;
    }

    public void setHours(int hours) {
        this.hours = hours;
    }

    public double getHours_wage() {
        return hours_wage;
    }

    public void setHours_wage(double hours_wage) {
        this.hours_wage = hours_wage;
    }

    @Override
    public String toString() {
        return  super.toString()+
                "时间：" + hours +
                "小时工资" + hours_wage;

    }
}
